home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / admin / xinetd.2 / xinetd / xinetd.2.1.7-linux.4 / libs / src / misc / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-25  |  806 b   |  41 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7.  
  8. #ifndef __MISC_H
  9. #define __MISC_H
  10.  
  11.  
  12. /*
  13.  * $Id: misc.h,v 2.1 1992/10/01 00:41:34 panos Exp $
  14.  */
  15.  
  16. /*
  17.  * Align to a power of 2
  18.  */
  19. #define align2( num, al )                    (((num)+(al)-1) & ~((al)-1))
  20.  
  21. #ifdef __ARGS
  22. #undef __ARGS
  23. #endif
  24.  
  25. #ifdef PROTOTYPES
  26. #   define __ARGS( s )               s
  27. #else
  28. #   define __ARGS( s )               ()
  29. #endif
  30.  
  31.  
  32. char *make_string __ARGS( ( unsigned count, ... ) ) ;
  33. char *make_pathname __ARGS( ( unsigned count, ... ) ) ;
  34.  
  35. char **argv_copy_and_clear __ARGS( ( char **argv, int start, int count ) ) ;
  36. char *dirname __ARGS( ( char *pathname ) ) ;
  37. char *basename __ARGS( ( char *pathname ) ) ;
  38.  
  39. #endif     /* __MISC_H */
  40.  
  41.